// 获取就诊记录详情
export const getMedicalRecordDetail = (recordId) => {
  return request({
    url: `/business/medical-record/${recordId}`,
    method: 'get'
  })
}

// 获取病房列表
export const getWards = (keyword) => {
  return request({
    url: '/business/wards',
    method: 'get',
    params: { keyword }
  })
}

// 获取可用床位
export const getAvailableBeds = (wardId) => {
  return request({
    url: `/business/ward/${wardId}/available-beds`,
    method: 'get'
  })
}

// 分配床位
export const assignBed = (data) => {
  return request({
    url: `/business/medical-record/${data.recordId}/assign-bed`,
    method: 'post',
    data
  })
}

// 办理入院
export const admission = (recordId) => {
  return request({
    url: `/business/medical-record/${recordId}/admission`,
    method: 'post'
  })
}

// 办理出院
export const discharge = (recordId) => {
  return request({
    url: `/business/medical-record/${recordId}/discharge`,
    method: 'post'
  })
} 